@extends('admin.layouts.app')
@section('css')
 @parent
 <link rel="stylesheet" href="../../static/css/iconfont.css">
    <link href="../../static/css/sweetalert.css" rel="stylesheet">
@endsection
@section('content')
<div class="content-wrapper">
     
        <!-- Main content -->
        <section class="content">
        <div class="row">
            <div class="col-md-12">
            <!-- AREA CHART -->
            <div class="box box-primary" style="border-top-color:transparent;">
                <div class="box-body">
                <div class="chart ss-main">
                    
                    <div class="row">
                        <div class="col-md-12">
                            <a href="{{admin_base_path('permissions/create')}}">
                            <button type="button" class="btn btn-primary">增加</button>
                            </a>
                        </div>
                    </div>
                    <br>
                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-bordered">
                                <tr>
                                    <th>id</th>
                                    <th>名称</th>
                                    <th>权限节点</th>
                                    <th>创建时间</th>
                                    <th>更新时间</th>
                                    <th style="width:150px;">操作</th>
                                </tr>
                                @foreach($permissions as $permission)
                                <tr>
                                    <td>{{$permission['id']}}</td>
                                    <td>{{$permission['name']}}</td>
                                    <td>{{$permission['code']}}</td>
                                    <td>{{$permission['created_at']}}</td>
                                    <td>{{$permission['updated_at']}}</td>
                                    <td>
                                        <button type="button" class="btn btn-primary btn-sm">编辑</button>
                                        <button type="button" class="btn btn-danger btn-sm">删除</button>
                                    </td>
                                </tr>
                               @endforeach 
                            </table>
                        </div>
                    </div>
    
                    <div class="row">
                        <div class="col-md-12">
                            <nav aria-label="Page navigation">
                                <ul class="pagination">
                                    <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                    </li>
                                    <li class="active"><a href="#">1</a></li>
                                    <li><a href="#">2</a></li>
                                    <li><a href="#">3</a></li>
                                    <li><a href="#">4</a></li>
                                    <li><a href="#">5</a></li>
                                    <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </div>
    
                    
    
                </div>
                </div>
                <!-- /.box-body -->
            </div>
            
    
            </div>
        </div>
        <!-- /.row -->
    
        </section>
</div>
@endsection
@section('js')
 @parent
 
<script>


</script>
@endsection